package com.taru.houseapp.service.impl;

import com.taru.houseapp.dao.IMarketDao;
import com.taru.houseapp.entity.HotCity;
import com.taru.houseapp.entity.HotSreach;
import com.taru.houseapp.entity.LoopImage;
import com.taru.houseapp.service.IMarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MarketServiceImpl implements IMarketService {

    @Autowired
    IMarketDao marketDao;

    @Override
    public List<LoopImage> queryRotationImage() {

        return marketDao.queryRotationImage();
    }

    @Override
    public List<HotCity> queryCityHot() {

        return marketDao.queryCityHot();
    }

    @Override
    public List<HotSreach> queryHotVillage(String cityName) {

        return marketDao.queryHotVillage(cityName);
    }
}
